rmdir target /S /Q
mkdir target

xcopy remove_duplicate_messages__alternate_-0.3.3-tb\* target /Y /E /EXCLUDE:exclude.txt

cd target\chrome

"C:\Program Files\Java\jdk1.5.0_20\bin\jar.exe" cfM0 removedupes.jar *
rmdir locale /S /Q
rmdir content /S /Q
rmdir skin /S /Q

cd ..

"C:\Program Files (x86)\WinRAR\winrar.exe" a -afzip -r target.zip *

move target.zip ..\target.xpi

cd ..